//package com.aliyun.mgt.service.impl;
//
//import OperateLogService;
//import com.aliyun.mgt.account.domain.model.OperateLog;
//import com.aliyun.mgt.account.domain.model.query.OperateLogQuery;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import java.util.ArrayList;
//import java.util.Date;
//import java.util.List;
//
///**
// * @Author: Xiaohang Lv
// * @Date: 2019/5/5 14:55
// */
//
//@SpringBootTest
//@RunWith(SpringRunner.class)
//public class OperateLogServiceImplTest extends AbstractTransactionalJUnit4SpringContextTests {
//    @Autowired
//    private OperateLogService operateLogService;
//
//    @Test
//    public void listOperateLogTest() {
//        OperateLogQuery operateLogQuery = new OperateLogQuery();
//        List<Integer> modules = new ArrayList<>();
//        List<Integer> resourceTypes = new ArrayList<>();
//        List<String> operateDepts = new ArrayList<>();
//
//        operateLogQuery.setTimeEnd("")
//                .setTimeStart("")
//                .setUserOrResourceName("")
//                .setResourceTypes(resourceTypes)
//                .setOperateDepts(operateDepts)
//                .setModules(modules)
//                .setAscOrDesc("desc");
//
//        System.out.println(operateLogService.listOperateLog(operateLogQuery).toString());
//    }
//
//    @Test
//    public void operateLogListOwnerDeptTest() {
//        OperateLogQuery operateLogQuery = new OperateLogQuery();
//        List<Integer> modules = new ArrayList<>();
//        List<Integer> resourceTypes = new ArrayList<>();
//        List<String> operateDepts = new ArrayList<>();
//
//        operateLogQuery.setTimeEnd("")
//                .setTimeStart("")
//                .setUserOrResourceName("")
//                .setResourceTypes(resourceTypes)
//                .setOperateDepts(operateDepts)
//                .setModules(modules)
//                .setAscOrDesc("desc");
//
//        System.out.println(operateLogService.operateLogListOwnerDept(operateLogQuery).toString());
//    }
//
//    @Test
//    public void operateLogListResourceTypeTest() {
//        OperateLogQuery operateLogQuery = new OperateLogQuery();
//        List<Integer> modules = new ArrayList<>();
//        List<Integer> resourceTypes = new ArrayList<>();
//        List<String> operateDepts = new ArrayList<>();
//
//        operateLogQuery.setTimeEnd("")
//                .setTimeStart("")
//                .setUserOrResourceName("")
//                .setResourceTypes(resourceTypes)
//                .setOperateDepts(operateDepts)
//                .setModules(modules)
//                .setAscOrDesc("desc");
//
//        System.out.println(operateLogService.operateLogListResourceType(operateLogQuery).toString());
//    }
//
//    @Test
//    public void insertOperateLogTest() {
//        OperateLog operateLog = new OperateLog();
//        operateLog.setOperateType(9);
//        operateLog.setOperateStatus(1);
//        operateLog.setOperateUser("111");
//        operateLog.setOperateUserName("管理员");
//        operateLog.setOperateTime(new Date());
//        operateLogService.insertOperateLog(operateLog);
//    }
//}
